﻿<%@ Page Language="C#" MasterPageFile="~/Member/MasterPage.master" AutoEventWireup="true" CodeFile="Menu.aspx.cs" Inherits="Member_Menu" Title="Untitled Page" %>

<%@ Register src="Control/MenuManager.ascx" tagname="MenuManager" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

    <script src="js/jquery.tablednd.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            jQuery('#table-dnd').tableDnD({
                onDrop: function(table, row){
                    var index = 0;
    	            $("#table-dnd tr").each(function(i, elm){
		                var obj = $(this).find("input[id$=hidDispOrder]");	
			            obj.val(index);
			            $(this).find(".lblDisp").text(index);
			            index ++;
		            });   
        		    
                },
                dragHandle: "drag-handle"
            });
            
            jQuery("#table-dnd tr").hover(function() {
                  $(this.cells[0]).addClass('show-drag-handle');
            }, function() {
                  $(this.cells[0]).removeClass('show-drag-handle');
            });
        });
    </script>
    <style type="text/css">
        .show-drag-handle 
        {
            background:url('/images/button/updown.gif') no-repeat 0px 5px;
            cursor:move;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeaderHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftHolder" Runat="Server">
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentHolder" Runat="Server">
    <uc1:MenuManager ID="MenuManager1" runat="server" />
</asp:Content>
<asp:Content ID="Content5" ContentPlaceHolderID="FooterHolder" Runat="Server">
</asp:Content>

